package com.zzyl.mapper;

import com.zzyl.dto.NursingPlanUpdateDto;
import com.zzyl.dto.ProjectPlanRequestDto;
import com.zzyl.vo.ProjectPlanVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingProjectPlanMapper {
    void addNursingProjectPlan(ProjectPlanRequestDto.ProjectPlan projectPlan);

    void updateNursingProjectPlan(ProjectPlanVo ProjectPlans);


    void deleteById(Long petId);

    @Select("select count(*) from nursing_project_plan where project_id = #{projectId}")
    Integer slectById(@Param("projectId")Long projectId);

    @Select("select count(*) from nursing_project_plan where id = #{id}")
    Integer uuuu(String id);

    @Select("select count(*) from nursing_project_plan where plan_id = #{planId}")
    int slectByPlanId(@Param("planId")Long planId);
}
